export default [
    {
        path: '/home',
        name: 'Home',
        component: () => import('../view/Home/index.vue'),
        children: [
            {
                path: 'pay',
                name: 'Pay',
                component: () => import('../view/Home/Pay/index.vue'),
                children: [
                    {
                        path: 'item/:id/:name',
                        name: 'Item',
                        component: () => import('../view/Home/Pay/Item/index.vue')
                    }
                ]
            },
            {
                path: 'muict',
                name: 'Muict',
                component: () => import('../view/Home/Muict/index.vue')
            },
        ]
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('../view/Login/index.vue')
    },
    {
        path: '/404',
        name: 'NotFound',
        component: () => import('../view/404/index.vue')
    },
    {
        path: "/:pathMatch(.*)*",
        redirect: '/404'
    },
    {
        path: '/',
        redirect: '/home'
    },
]